@charset "utf-8";

/*通用样式*/

* {
	padding: 0;
	margin: 0;
}


/*边框，背景*/

.dakuang2 {
	width: 100%;
	height: 500px;
	background: #F1F1F1;
}


/*设置标题：字体，大小，居中，边距，去除多去部分*/

.dakuang2 h2 {
	font-family: 宋体;
	font-size: 35px;
	text-align: center;
	padding-left: 200px;
	padding-top: 50px;
	margin-left: -17%;
	box-sizing: border-box;
}


/*图片+文字的上边距*/

.dakuang2 ul {
	margin-top: 20px;
	width: 90%;
	height: 440px;
	margin-left:5% ;
}


/*设置内容的横排*/

.dakuang2 ul li {
	width: 330px;
	height: 160px;
    float: left;
    position: relative;
}
.dakuang2 ul li  img {
    position:absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%,-50%);
	/*过渡效果*/
	transition: all 1s;
}
.dakuang2 ul li img:hover{
	width: 400px;
	height: 230px;
	transition: all 1s;
    transform: translate(-50%,-50%) scale(0.5);
}
/*设置内容的字体样式*/

.dakuang2 h5 {
	font-family: "楷体";
	font-size: 20px;
	margin-top: 45%;
	margin-left:38%;
}


/*设置鼠标滑动石的效果*/

.dakuang2 .p1 a:hover {
	color: gold;
	transition: all 0.5s;
}

.dakuang2 .p2 a:hover {
	color: yellowgreen;
	transition: all 0.5s;
}

.dakuang2 .p3 a:hover {
	color: orange;
	transition: all 0.5s;
}

.dakuang2 .p4 a:hover {
	color: peru;
	transition: all 0.5s;
}

.dakuang2 .p5 a:hover {
	color: pink;
	transition: all 0.5s;
}

.dakuang2 .p6 a:hover {
	color: orangered;
	transition: all 0.5s;
}

.dakuang2 .p7 a:hover {
	color: deepskyblue;
	transition: all 0.5s;
}

.dakuang2 .p8 a:hover {
	color: turquoise;
	transition: all 0.5s;
}


/*设置happy的边框，内边距，定位*/

.happy {
	width:80%;
	height: 360px;
	padding: 100px;
	position: relative;

}


/*设置内容的横排*/

.happy ul li {
	float: left;
}


/*li的横排显示*/

.happy li {
	position: absolute;
	margin-top: -25%;
	margin-left: 45%;
}


/*设置图片的大小，外边距*/

.happy img {
	width: 570px;
	height: 360px;
	margin: 20px;
}


/*设置一部分文字的大小，颜色，左边距*/

.happy span {
	font-size: 15px;
	color: #848484;
	margin-left: 50px;
}

/*设置文字居中，大小，内边距*/
.happy h3 {
	font-size: 30px;
	margin: 50px;
	text-align: center;
}